package com.onlinelibrary.result;

import lombok.Data;

@Data
public class Result {
    Integer code;
    String msg;
    Object data;
    Object data2;

    public Result(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Result(Integer code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public Result(Integer code, String msg, Object data,Object data2) {
        this.code = code;
        this.msg = msg;
        this.data = data;
        this.data2 = data2;
    }
}
